package com.jzcn.common.enums;

import lombok.Getter;

public enum DeleteEnum {

    OPEN_DELETE("未删除", 1),

    REMOVE_DELETE("删除", 0);


    @Getter
    private String content;

    @Getter
    private Integer value;


    DeleteEnum(String content, Integer value) {
        this.content = content;
        this.value = value;
    }

    public static DeleteEnum getByValue(Integer value) {
        DeleteEnum[] types = DeleteEnum.values();
        for (DeleteEnum type : types) {
            if (type.getValue().equals(value)) {
                return type;
            }
        }
        return null;
    }
}
